package common

import "time"

//
func NewMeta() *Meta {
	return &Meta{
		CreatedAtRequest: NewCreatedAtRequest(),
	}
}

type Meta struct {
	Id int64 `json:"id,omitempty"`
	*CreatedAtRequest
}

func NewCreatedAtRequest() *CreatedAtRequest {
	return &CreatedAtRequest{
		CreatedAt: time.Now().Unix(),
	}
}

type CreatedAtRequest struct {
	CreatedAt int64 `json:"created_at,omitempty"`
}

func NewUpdateAtRequest() *UpdateAtRequest {
	return &UpdateAtRequest{}
}

type UpdateAtRequest struct {
	UpdatedAt int64 `json:"updated_at,omitempty"`
}
